import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';

export const querySchema: FormSchemaGetter = () => [
  {
    component: 'Input',
    fieldName: 'alarmName',
    label: '配置名称',
  },
  {
    component: 'Input',
    fieldName: 'productName',
    label: '产品名称',
  },
  {
    component: 'Input',
    fieldName: 'deviceName',
    label: '设备名称',
  },
];

export const columns: VxeGridProps['columns'] = [
  {
    title: '配置名称',
    field: 'alarmName',
  },
  {
    title: '产品名称',
    field: 'productName',
  },
  {
    title: '设备名称',
    field: 'deviceName',
  },
  {
    title: '告警描述',
    field: 'description',
    minWidth: 300,
  },
  {
    title: '告警时间',
    field: 'createTime',
    minWidth: 100,
  },
  // {
  //   field: 'action',
  //   fixed: 'right',
  //   slots: { default: 'action' },
  //   title: '操作',
  //   resizable: false,
  //   width: 'auto',
  // },
];
